<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../common/mui/mui.min.css" rel="stylesheet" />
		<link href="../../common/css/publicStyle.css" rel="stylesheet" />
		<link href="platform-mana.css" rel="stylesheet" />
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<div id="navimg"><img src="../../common/images/logo-white.png" width="130px" height="20px"></div>
		</header>
		<div class="mui-content">
			<div class="mui-scroll">
				<br/>
				<!--<ul class="mui-table-view">
					<li id="platform-stat-schedual" class="mui-table-view-cell" data-open="0">
						<a class="mui-navigate-right">
							<div class="cellicon">
								<img src="images/static.png" width="20px" height="20px">
							</div>
							<div class="cellName">排班统计</div>
							<span class="mui-badge">工时、班次、加班</span>
						</a>
					</li>
				</ul>
				<br/>-->
				<ul class="mui-table-view">
					<li id="platform-stat-nightHours" class="mui-table-view-cell">
						<a class="mui-navigate-right">
							<div class="cellicon">
								<img src="images/tongji.png" width="20px" height="20px">
							</div>
							<div class="cellName">夜班数统计</div>
							<span class="mui-badge">夜班、节假日夜班</span>
						</a>
					</li>
				</ul>
				<br/>
				<ul class="mui-table-view">
					<li id="platform-stat-yachuang" class="mui-table-view-cell">
						<a class="mui-navigate-right">
							<div class="cellicon">
								<img src="images/zhexian.png" width="20px" height="20px">
							</div>
							<div class="cellName">压疮统计</div>
							<span class="mui-badge">科室压疮查询</span>
						</a>
					</li>
				</ul>
			</div>
		</div>
		<script src="../../common/mui/mui.min.js"></script>
		<script type="text/javascript">
			mui.init()
			mui.plusReady(function() {
				plus.navigator.setStatusBarBackground('#24af96');
				plus.navigator.setStatusBarStyle('light');
				
				var _self = plus.webview.currentWebview();
				_self.setStyle({
					popGesture: 'none'  // 作用于ios 禁止右滑关闭
				});

				mui.back = function() {
					plus.navigator.setStatusBarBackground('#fff')
					plus.navigator.setStatusBarStyle('dark');
					_self.close("auto");
				}
//				var schedual = document.getElementById('platform-stat-schedual');
//				schedual.addEventListener('tap', elementClick, false);
				var nightHours = document.getElementById('platform-stat-nightHours');
				nightHours.addEventListener('tap', elementClick, false);
				var yachuang = document.getElementById('platform-stat-yachuang');
				yachuang.addEventListener('tap', elementClick, false);
				
			});

			function elementClick() {
				var openStr = this.getAttribute('data-open');
				if (openStr == '0') {
					mui.toast('即将开放');
					return;
				}
				var href = this.id + '.html';
				mui.openWindow({
					url: href,
					id: this.id,
					extras: {},
					waiting: { autoShow: false }
				});
				var subHtml = plus.webview.getWebviewById(this.id);
				//console.log(subHtml);
				if(subHtml) {
					subHtml.addEventListener('close', function() {
						plus.navigator.setStatusBarBackground('#24AF96');
						plus.navigator.setStatusBarStyle('light');
						plus.navigator.setFullscreen(false);
					}, false);
				}
			}
		</script>
	</body>

</html>